package com.mystudy.reflect;

/**
 * @program: infoalgorithm
 * @description: 父类
 * @author: zhouzhilong
 * @create: 2019-04-23 16:52
 **/
public class Parent extends GrandFather {
    private String name ="默认值";
    private int age = 18;
    public int height;
    public String school;


    @Override
    public String toString() {
        return "Parent{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", school='" + school + '\'' +
                '}';
    }

    public Parent(String name, int age,int height) {
        super(name,age);
        this.name = name;
        this.age = age;
        this.height = 555;
        this.school="家里蹲";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
}
